package com.efast.dmom.mgmt.controller.mes;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.efast.cafe.framework.bean.ResultBean;
import com.efast.dmom.mgmt.entity.mes.TwBasLot;
import com.efast.dmom.mgmt.service.mes.CertificateNumberService;

@Controller
@RequestMapping(value = "/certificateNumber")
public class CertificateNumberController {

	@Autowired
    private CertificateNumberService certificateNumberService;
	
	//保存合格证编号
	@RequestMapping(value = "/saveCertificateNumber")
	public @ResponseBody ResultBean saveCertificateNumber(@RequestBody TwBasLot bean) {
        ResultBean result = certificateNumberService.saveCertificateNumber(bean);
		return result;
	}
	
}
